package com.zh.chat.entity;

/**
 * FriendsId entity. @author MyEclipse Persistence Tools
 */

public class FriendsId implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1636837829234114260L;
	// Fields
	private long sysId;
	private long friendId;

	// Constructors

	/** default constructor */
	public FriendsId() {
	}

	/** full constructor */
	public FriendsId(long sysId, long friendId) {
		this.sysId = sysId;
		this.friendId = friendId;
	}

	// Property accessors

	public long getSysId() {
		return this.sysId;
	}

	public void setSysId(long sysId) {
		this.sysId = sysId;
	}

	public long getFriendId() {
		return this.friendId;
	}

	public void setFriendId(long friendId) {
		this.friendId = friendId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof FriendsId))
			return false;
		FriendsId castOther = (FriendsId) other;

		return (this.getSysId() == castOther.getSysId())
				&& (this.getFriendId() == castOther.getFriendId());
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (int) this.getSysId();
		result = 37 * result + (int) this.getFriendId();
		return result;
	}

}